Switch from cdbs to dh
authorJeremy Bicha <jbicha@debian.org>
Sat, 14 Oct 2017 18:36:10 +0000 (14:36 -0400)
committerJeremy Bicha <jbicha@debian.org>
Sat, 14 Oct 2017 18:52:23 +0000 (14:52 -0400)
debian/changelog
debian/compat
debian/control
debian/rules

index 817169cf65a50f744d02552dbef45b4a21b0c36b..914f8c8701d595cc5597dddc55759cd779bdc978 100644 (file)
@@ -1,6 +1,7 @@
 babl (0.1.34-1) UNRELEASED; urgency=medium
 
   * New upstream release
+  * Switch from cdbs to dh
 
  -- Jeremy Bicha <jbicha@debian.org>  Sat, 14 Oct 2017 14:10:57 -0400
 
index ec635144f60048986bc560c5576355344005e6e7..f599e28b8ab0d8c9c57a486c89c4a5132dcbd3b2 100644 (file)
@@ -1 +1 @@
-9
+10
index 2c705aac9d07629abf3ee76c377dcbd440a5bb5a..337b0a8a720e1a62a10308e1acc9aa9d24f35f35 100644 (file)
@@ -2,9 +2,7 @@ Source: babl
 Section: libs
 Priority: optional
 Maintainer: Debian QA Group <packages@qa.debian.org>
-Build-Depends: dh-autoreconf,
-               cdbs (>= 0.4.93~),
-               debhelper (>= 9),
+Build-Depends: debhelper (>= 10),
                gobject-introspection,
                libgirepository1.0-dev,
                pkg-config
index 36afcd5608f8a0a81d2307970b94c0c2aebd5415..b32f73f2be6b0330d6afe0ea57ed10cc6f4a6bc8 100755 (executable)
@@ -1,11 +1,7 @@
 #!/usr/bin/make -f
+-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk
 
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/rules/autoreconf.mk
-include /usr/share/cdbs/1/class/autotools.mk
-include /usr/share/cdbs/1/rules/utils.mk
-
-export LDFLAGS += -Wl,--as-needed
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
 # Disable SSE2 except on amd64
 ifneq ($(DEB_HOST_ARCH_CPU),amd64)
@@ -14,12 +10,23 @@ else
        sse_flags := --enable-mmx --enable-sse --enable-sse2
 endif
 
-DEB_CONFIGURE_EXTRA_FLAGS += \
---libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
-       $(sse_flags) \
-       --disable-sse4_1 \
-       --disable-f16c
+%:
+       dh $@
+
+override_dh_autoreconf:
+       dh_autoreconf --as-needed
+
+override_dh_auto_configure:
+       dh_auto_configure -- \
+               $(sse_flags) \
+               --disable-sse4_1 \
+               --disable-f16c
+
+override_dh_install:
+       dh_install --list-missing
+
+override_dh_makeshlibs:
+       dh_makeshlibs -X/usr/lib/$(DEB_HOST_MULTIARCH)/babl-0.1/ -V -- -c4
 
-DEB_DH_MAKESHLIBS_ARGS_libbabl-0.1-0 = "--exclude=/usr/lib/$(DEB_HOST_MULTIARCH)/babl-0.1"
-DEB_DH_INSTALLDOCS_ARGS_libbabl-0.1-doc = "--exclude=Makefile"
-DEB_DH_INSTALL_ARGS += --list-missing
+override_dh_installdocs:
+       dh_installdocs -XMakefile